<?php


	namespace app\jobs;


	class MessagesJobs extends BasicJobs
	{
		public function doJob ($data) {
			echo '默认方法:' . __FUNCTION__ . '(),消费成功,数据为:' . print_r($data, true);

			return true;
		}


		protected function send ($order_id) {
			echo '方法:' . __FUNCTION__ . '(),消费成功,数据为:' . print_r(compact('order_id'), true);

			return true;
		}


		protected function later ($data) {
			echo '方法:' . __FUNCTION__ . '(),等待' . $data['delay'] . 's后,才被消费成功,数据为:' . print_r($data, true);

			return true;
		}


	}
